package com.bianguo.android.baidumapdemo;

import android.app.Application;
import android.content.Context;

import com.baidu.mapapi.SDKInitializer;
import com.uuzuche.lib_zxing.activity.ZXingLibrary;

/**
 * Created by Administrator on 2018/2/28.
 */

public class BaseApplication extends Application {

    public static Context mContext;

    @Override
    public void onCreate() {
        super.onCreate();
        mContext = this;
        SDKInitializer.initialize(this);
        ZXingLibrary.initDisplayOpinion(this);
//        XGPushConfig.setMiPushAppId(this, "2882303761517729804");
//        XGPushConfig.setMiPushAppKey(this, "5281772996804");
//        XGPushConfig.enableDebug(this, true);
//        XGPushManager.registerPush(this, new XGIOperateCallback() {
//            @Override
//            public void onSuccess(Object data, int flag) {
//                //token在设备卸载重装的时候有可能会变
//                MLog.mLog("TPush 注册成功，设备token为：" + data);
//            }
//            @Override
//            public void onFail(Object data, int errCode, String msg) {
//                MLog.mLog("TPush 注册失败，错误码：" + errCode + ",错误信息：" + msg);
//            }
//        });
    }
}
